
#include <QtGui/QWidget>

/*----------------------------------------------------------------------------*/

class ImageViewer
	: public QWidget
{
	Q_OBJECT
/*----------------------------------------------------------------------------*/

public:

/*----------------------------------------------------------------------------*/

	ImageViewer( QWidget* _parent );

	~ImageViewer();

/*----------------------------------------------------------------------------*/

	void SetImage( QImage* _image );

	void CloseImage();

	QImage& GetImage();

/*----------------------------------------------------------------------------*/

private:

/*----------------------------------------------------------------------------*/

	QImage* m_image;

/*----------------------------------------------------------------------------*/

	void paintEvent( QPaintEvent* );

/*----------------------------------------------------------------------------*/

};

/*----------------------------------------------------------------------------*/
